<?php

use yii\db\Migration;

/**
 * Class m180224_063911_alter_column_to_project
 */
class m180224_063911_alter_column_to_project_pre_evaluation_mortgage extends Migration
{
    /**
     * @inheritdoc
     */
    public function safeUp()
    {
        $this->addColumn('project_pre_evaluation_mortgage','lock_timestamp',$this->string()->comment('加锁时间'));
        $this->addColumn('project_pre_evaluation_mortgage','lock_user',$this->integer()->comment('加锁用户'));
    }

    /**
     * @inheritdoc
     */
    public function safeDown()
    {
         echo "m180224_063911_alter_column_to_project_pre_evaluation_mortgage cannot be reverted.\n";

        return false;
    }

    /*
    // Use up()/down() to run migration code without a transaction.
    public function up()
    {

    }

    public function down()
    {
        echo "m180224_063911_alter_column_to_project cannot be reverted.\n";

        return false;
    }
    */
}
